package com.crm.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.crm.dao.UserDao;
import com.crm.dao.UserRolesDao;
import com.crm.entity.Roles;
import com.crm.entity.UserRoles;
import com.crm.service.UserRolesService;

//角色和用户服务层的实现类
@Service
public class UserRolesServiceImpl implements UserRolesService{
	@Autowired
	private UserRolesDao userRolesDao;
	@Override
	public Integer addUsersByIdRoles(UserRoles userRoles) {
		// TODO Auto-generated method stub
		return userRolesDao.addUsersByIdRoles(userRoles);
	}

	@Override
	public Integer removeUsersByIdRoles(UserRoles userRoles) {
		// TODO Auto-generated method stub
		return userRolesDao.removeUsersByIdRoles(userRoles);
	}

}
